<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>FirefoxOS - SystemApp - API documentation : <i class="icon-shield" style="color:#0186d1"></i> Apple</title>

    <script src="scripts/prettify/prettify.js"> </script>
    <script src="scripts/prettify/lang-css.js"> </script>
    <!--[if lt IE 9]>
      <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
    <link href="styles/bootstrap.css" rel="stylesheet">
    <link href="styles/docs.css" rel="stylesheet">
    <link href="styles/bootstrap-custom.css" rel="stylesheet">
    <link href="http://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
    <script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
  </head>
  <body>
    <header class="header navbar navbar-inverse">
      <div class="navbar-inner">
        <div class="container-fluid">
          <a class="brand" href="#"><strong>FirefoxOS SystemApp</strong> API documentation</a>
        </div>
      </div>
    </header>

    <div class="container-fluid">
      <div class="row-fluid">
          <div class="span4">
              <h2><a href="index.html">Index</a></h2><div class="well well-small"><ul class="nav nav-list"><li class="nav-header">Classes</li><li><a href="Alive.html"><i class="icon-shield" style="color: #0186d1"></i> Alive</a></li><li><a href="Apple.html"><i class="icon-shield" style="color: #0186d1"></i> Apple</a></li><li><a href="Energy.html"><i class="icon-shield" style="color: #0186d1"></i> Energy</a></li><li><a href="Environment.html"><i class="icon-shield" style="color: #0186d1"></i> Environment</a></li><li><a href="Tree.html"><i class="icon-shield" style="color: #0186d1"></i> Tree</a></li></ul></div><div class="well well-small"><ul class="nav nav-list"><li class="nav-header">Public Events</li><li><a href="Apple.html#event:beEaten"><i class="icon-bell-alt" style="color: yellow"></i> beEaten <span class="label label-inverse pull-right">Apple</span></a></li><li><a href="Environment.html#event:beforeDestroy"><i class="icon-bell-alt" style="color: yellow"></i> beforeDestroy <span class="label label-inverse pull-right">Environment</span></a></li></ul></div><div class="well well-small"><ul class="nav nav-list"><li class="nav-header">Private Events</li></ul></div><div class="well well-small"><ul class="nav nav-list"><li class="nav-header">Global</li></ul></div>
          </div>

          <div class="span8">
              <h1 class="page-header"><i class="icon-shield" style="color:#0186d1"></i> Apple</h1>
              



<section>
    
<header>
    <!--h2>
    Apple
    </h2-->
    
        <div class="class-description"><p>Donec imperdiet dignissim semper. Sed vehicula purus dui, eget porta lectus convallis sagittis. Suspendisse ac lectus dignissim, tincidunt nisi quis, gravida metus.</p></div>
    
</header>  

<article>
    <div class="container-overview hero-unit">
    

            
        <ul class="breadcrumb">
            <li>Extends</li>
            <li><a href="Alive.html" class="btn btn-primary">Alive</a></li>
        </ul>
    

    
    
    
        
<dt>
    <h4 class="name" id="Apple">new Apple<span class="signature">()</span><span class="type-signature"></span></h4>
    
    
</dt>
<dd>
    
    

    
    
    
    
    
    
    
<dl class="details">
    
        
    
    
    

    
    
    
    
    
    
    
    
    
    
    

    
    
    
    
    
    
    
</dl>

    
    

    

    
    
    
    
    
    
    
</dd>

    
    </div>
    
    
    
    
    
    
    
    
        <h3 class="subsection-title">Members</h3>
        
        <dl class="bs-docs-example bs-members">
            
<dt>
    <h4 class="name" id="color">color<span class="type-signature"> :String</span></h4>
    
    
</dt>
<dd>
    
    <div class="description">
        <p>Donec imperdiet dignissim</p>
    </div>
    
    
    
<dl class="details">
    
        
    
    
    

    
    
    
    
    
    
    
    
    
    
    

    
    
    
    
    
    
    
</dl>

    
    
</dd>

        
            
<dt>
    <h4 class="name" id="energy">energy<span class="type-signature"></span></h4>
    
    
</dt>
<dd>
    
    <div class="description">
        <p>amount of energy</p>
    </div>
    
    
    
<dl class="details">
    
        
        <h5 class="subsection-title">Properties:</h5>
        
        <dl>

<table class="props table table-bordered table-condensed">
    <thead>
	<tr>
		
		<th>Name</th>
		
		
		<th>Type</th>
		
		
		
		
		
		<th class="last">Description</th>
	</tr>
	</thead>
	
	<tbody>
	
	
        <tr>
            
                <td class="name">the</td>
            
            
            <td class="type">
            
                
<span class="param-type"><a href="Energy.html">Energy</a></span>


            
            </td>
            
            
            
            
            
            <td class="description last"></td>
        </tr>
	
	
	</tbody>
</table></dl>
        
    
        
    
    
    

    
    <dd class="inherited-from"><ul class="dummy breadcrumb"><li>Inherited From:</li><li>
        <a href="Alive.html#energy">Alive#energy</a>
    </li></dd>
    
    
    
    
    
    
    
    
    
    
    

    
    
    
    
    
    
    
</dl>

    
    
</dd>

        </dl>
    
    
    
        <h3 class="subsection-title">Methods</h3>
        
        <dl class="bs-docs-example bs-methods">
            
<dt>
    <h4 class="name" id="survive">survive<span class="signature">(environment)</span><span class="type-signature"> &rarr; {<a href="Energy.html">Energy</a>}</span></h4>
    
    
</dt>
<dd>
    
    

    
    
    
    
    
        <h5>Parameters:</h5>
        

<table class="params table table-bordered table-condensed">
    <thead>
	<tr>
		
		<th>Name</th>
		

		<th>Type</th>

		

		

		<th class="last">Description</th>
	</tr>
	</thead>

	<tbody>
	

        <tr>
            
                <td class="name">environment</td>
            

            <td class="type">
            
                
<span class="param-type"><a href="Environment.html">Environment</a></span>


            
            </td>

            

            

            <td class="description last"><p>the environment when this Alive thing is surviving</p></td>
        </tr>

	
	</tbody>
</table>

    
    
    
<dl class="details">
    
        
    
    
    

    
    <dd class="inherited-from"><ul class="dummy breadcrumb"><li>Inherited From:</li><li>
        <a href="Alive.html#survive">Alive#survive</a>
    </li></dd>
    
    
    
    
    
    
    
    
    
    
    

    
    
    
    
    
    
    
</dl>

    
    

    

    
    
    
    
    
    <h5>Returns:</h5>
    
            <div class="returns">


    
<span class="param-type"><a href="Energy.html">Energy</a></span>




<span class="param-desc">
    <p>the energy wasted in this surviving instance</p>
</span>

</div>

        
    
    
</dd>

        </dl>
    
    
    
    
    
        <h3 class="subsection-title">Events</h3>
        
        <dl class="bs-docs-example bs-events">
            
<dt>
    <h4 class="name" id="event:beEaten">beEaten</h4>
    
    
</dt>
<dd>
    
    
    <div class="description">
        <p>
        <p>Sed vehicula purus dui</p>
        </p>
    </div>
    

    
        <ul class="breadcrumb">
            <li>Type: </li>
            <li>
                
<span class="param-type"><a href="Energy.html">Energy</a></span>


            </li>
        </ul>
    
    
    
    
    
    
    
<dl class="details">
    
        
    
    
    

    
    
    
    
    
    
    
    
    
    
    

    
    
    
    
    
    
    
</dl>

    
    

    

    
    
    
    
    
    
    
</dd>

        </dl>
    
</article>

</section>  




          </div>
      </div>

        <br clear="both">

      <footer>
        Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Oct 30 2017 20:40:10 GMT-0300 (-03)
        <br>
      </footer>
      <script> prettyPrint(); </script>
    </div>
  </body>
</html>